﻿@model IEnumerable<Management.Core.Role>


@{
    ViewBag.Title = "管理员权限管理";
}

@section SideNav{@Html.Partial("SideNavPartialView")}
<ol class="breadcrumb">
    <li><span class="glyphicon glyphicon-home"></span>  @Html.ActionLink("首页", "Index", "Home")</li>
    <li class="active">@Html.ActionLink("权限管理", "Index", "Role")</li>
</ol>

<p>
    @Html.ActionLink("添加", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Created_at)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Updated_at)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Created_at)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Updated_at)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.RoleID }) |
            @*@Html.ActionLink("Details", "Details", new { id=item.RoleID }) |*@
            @Html.ActionLink("删除", "Delete", new { id=item.RoleID })
        </td>
    </tr>
}

</table>
